import 'package:trade/common/service/router_service/router_factory.dart';
import 'package:trade/common/util/ai_json/ai_json.dart';
import 'package:trade/pages/login_page/login_page.dart';
import 'package:trade/pages/navigation_page.dart';
import 'package:trade/pages/trading_page/trading_page.dart';


/// 正式路由名称
class RouteName {
  static const String navigationPage = "NavigationPage";
  static const String loginPage = "loginPage";
  static const String tradingPage = "tradingPage";
  const RouteName._internal();
}

class RouterTable {
  /// 正式路由表
  static Map<String, BaseRoute> table = {
    RouteName.navigationPage: BaseRoute<NavigationPage>(
      builder: (context, setting) => NavigationPage(),
      routerType: RouterType.no_animate,
    ),

    RouteName.loginPage: BaseRoute<LoginPage>(
      builder: (context, setting) => LoginPage(),
      routerType: RouterType.no_animate,
    ),

    RouteName.tradingPage: BaseRoute<TradingPage>(
      builder: (context, setting) => TradingPage(),
      routerType: RouterType.no_animate,
    ),
  };
}
